<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewEmployeeTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewEmployeeLabel_name}"/>
                    <h:outputText value="#{employeeController.selected.name}" title="#{bundle.ViewEmployeeTitle_name}"/>
                    <h:outputText value="#{bundle.ViewEmployeeLabel_userName}"/>
                    <h:outputText value="#{employeeController.selected.userName}" title="#{bundle.ViewEmployeeTitle_userName}"/>
                    <h:outputText value="#{bundle.ViewEmployeeLabel_pass}"/>
                    <h:outputText value="#{employeeController.selected.pass}" title="#{bundle.ViewEmployeeTitle_pass}"/>
                    <h:outputText value="#{bundle.ViewEmployeeLabel_phone}"/>
                    <h:outputText value="#{employeeController.selected.phone}" title="#{bundle.ViewEmployeeTitle_phone}"/>
                    <h:outputText value="#{bundle.ViewEmployeeLabel_other}"/>
                    <h:outputText value="#{employeeController.selected.other}" title="#{bundle.ViewEmployeeTitle_other}"/>
                    <h:outputText value="#{bundle.ViewEmployeeLabel_limits}"/>
                    <h:outputText value="#{employeeController.selected.limits}" title="#{bundle.ViewEmployeeTitle_limits}"/>
                </h:panelGrid>
                <br />
                <center>
                <h:commandButton action="#{employeeController.destroyAndView}" value="#{bundle.ViewEmployeeDestroyLink}" class="btn btn-primary"/>
                 <h:outputText value=" "/>
                <h:commandButton action="Edit" value="#{bundle.ViewEmployeeEditLink}" class="btn btn-primary"/>
               <h:outputText value=" "/>
                <h:commandButton action="#{employeeController.prepareList}" value="#{bundle.ViewEmployeeShowAllLink}" class="btn btn-primary"/>
                
                </center>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
